package com.leyou.item.api;

import com.leyou.item.pojo.Category;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author huangxin
 * @date 2019/4/30-13:35
 */
public interface CategoryApi {
    @GetMapping("category/list")
    public List<Category> queryCategoryListByPid(@RequestParam("pid") Long pid);

    @GetMapping("category/bid/{bid}")
    public List<Category> queryByBrandId(@PathVariable Long bid);

    @GetMapping("category/list/ids")
    public List<Category> queryCategoryByIds(@RequestParam("ids") List<Long> ids);
}
